package com.nandi.deviceinstall.model


import com.nandi.deviceinstall.bean.BaseObjectBean
import com.nandi.deviceinstall.bean.LoginBean
import com.nandi.deviceinstall.bean.TapRecordInfoBean
import com.nandi.deviceinstall.contract.*
import com.nandi.deviceinstall.net.RetrofitClient

import io.reactivex.Flowable
import okhttp3.ResponseBody


class TapRecordInfoModel : TapRecordInfoContract.Model {

    private val apiService = RetrofitClient.getInstance()!!.api!!

    override fun executeTapRecordInfo(token: String, id: Int): Flowable<TapRecordInfoBean> {
        return apiService.getTapRecordInfo(token, id)
    }

    override fun executeDownPic(token: String, path: String): Flowable<ResponseBody> {
        return apiService.downPic(token, path, 6)
    }
}
